<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>login hrdemo</title>
<script type="text/javascript" src="../resources/easyui/jquery-1.6.min.js"></script>
</head>
<body>
帐号：<input id="account"/></p>
密码：<input id="password"/></p>
<button>login</button>
<script type="text/javascript">
$(function(){
	$("button").click(function(){
		$.ajax({//http://localhost:8080/hrdemo/login/mvc/login/logout.json
			url:'mvc/login/login.json',
			data:{account:$("#account").val(),password:$("#password").val()},
			dataType:'json',
			cache:false,
			success:function(result){
				//alert(result.msg);
				if(result.success)
					location.href="../system/forward.html";
				else
					$("<div>",{
						html:result.msg
					}).appendTo("body");
			}
		});
	});
});
</script>
</body>
</html>